package com.qipay.mapper;

import com.qipay.baas.model.CpAccountTradlog;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;

import java.util.List;

@Mapper
public interface CpAccountTradlogMapper extends com.qipay.baas.mapper.CpAccountTradlogMapper {

    @SelectProvider(type = CpAccountTradlogSqlProvider.class, method = "list")
    @Results({
            @Result(column = "id", property = "id", jdbcType = JdbcType.BIGINT, id = true),
            @Result(column = "cp_id", property = "cpId", jdbcType = JdbcType.BIGINT),
            @Result(column = "amount", property = "amount", jdbcType = JdbcType.INTEGER),
            @Result(column = "account_type", property = "accountType", jdbcType = JdbcType.TINYINT),
            @Result(column = "channel_type", property = "channelType", jdbcType = JdbcType.TINYINT),
            @Result(column = "total", property = "total", jdbcType = JdbcType.INTEGER),
            @Result(column = "trade_no", property = "tradeNo", jdbcType = JdbcType.CHAR),
            @Result(column = "remark", property = "remark", jdbcType = JdbcType.VARCHAR),
            @Result(column = "create_time", property = "createTime", jdbcType = JdbcType.TIMESTAMP)
    })
    List<CpAccountTradlog> list(List<Long> cpIdList, String from, String to);
}